package dao.pojo;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DeviceCfg entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "device_cfg", catalog = "cloud_ifw")
public class DeviceCfg extends BasePojo implements java.io.Serializable {

	// Fields

	private Integer cfgIndex;
	private String deviceSn;
	private Short deviceReboot;
	private Short deviceUpgrade;
	private Short deviceUpgradeReboot;
	private String deviceUpgradeVersion;

	@Override
	public Object getEntityId() {
		// TODO Auto-generated method stub
		return cfgIndex;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "cfg_index", unique = true, nullable = false)
	public Integer getCfgIndex() {
		return this.cfgIndex;
	}

	public void setCfgIndex(Integer cfgIndex) {
		this.cfgIndex = cfgIndex;
	}

	@Column(name = "device_sn", nullable = false, length = 64)
	public String getDeviceSn() {
		return this.deviceSn;
	}

	public void setDeviceSn(String deviceSn) {
		this.deviceSn = deviceSn;
	}

	@Column(name = "device_reboot", nullable = false)
	public Short getDeviceReboot() {
		return this.deviceReboot;
	}

	public void setDeviceReboot(Short deviceReboot) {
		this.deviceReboot = deviceReboot;
	}

	@Column(name = "device_upgrade", nullable = false)
	public Short getDeviceUpgrade() {
		return this.deviceUpgrade;
	}

	public void setDeviceUpgrade(Short deviceUpgrade) {
		this.deviceUpgrade = deviceUpgrade;
	}

	@Column(name = "device_upgrade_reboot", nullable = false)
	public Short getDeviceUpgradeReboot() {
		return this.deviceUpgradeReboot;
	}

	public void setDeviceUpgradeReboot(Short deviceUpgradeReboot) {
		this.deviceUpgradeReboot = deviceUpgradeReboot;
	}

	@Column(name = "device_upgrade_version", nullable = false, length = 32)
	public String getDeviceUpgradeVersion() {
		return this.deviceUpgradeVersion;
	}

	public void setDeviceUpgradeVersion(String deviceUpgradeVersion) {
		this.deviceUpgradeVersion = deviceUpgradeVersion;
	}

}